<?php
class Zendvn_Filter_Url extends Zend_Filter
{
	public function __construct()
	{
		$this->addFilter(new Zendvn_Filter_RemoveCircumflex())
			->addFilter(new Zend_Filter_StringToLower(array('encoding'=>'UTF-8')))
			->addFilter(new Zend_Filter_Alnum(true))
			->addFilter(new Zend_Filter_PregReplace(array('match'=>'#\s+#','replace'=>'-')))
			->addFilter(new Zend_Filter_Word_SeparatorToDash());
		return $this;
	}
}